﻿<%@ Page Language="C#" MasterPageFile="~/masterpageuser.master" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" Title="Register" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderMain" Runat="Server">    
<div class="conten-header">Register</div>
<div class="conten-underline"></div>

    <table cellspacing="1" class="tbldangnhap">
        <tr>
            <td class="tdthongtin">
                Login Name:</td>
            <td class="tdnoidung">
                <asp:TextBox ID="txtTenDN" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtTenDN" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="tdthongtin">
                Password:</td>
            <td class="tdnoidung">
                <asp:TextBox ID="txtMatKhau" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtMatKhau" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="tdthongtin">
                Confirm password:</td>
            <td class="tdnoidung">
                <asp:TextBox ID="txtReMatKhau" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtReMatKhau" ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="txtMatKhau" ControlToValidate="txtReMatKhau" 
                    ErrorMessage="Xác nhận mật khẩu"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td class="tdthongtin">
                Email:</td>
            <td class="tdnoidung">
                <asp:TextBox ID="txtEmail" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="txtEmail" ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtEmail" ErrorMessage="Nhập đúng email" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="tdthongtin">
                Full name:</td>
            <td class="tdnoidung">
                <asp:TextBox ID="txtHoTen" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                    ControlToValidate="txtHoTen" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="tdthongtin">
                Phone number:</td>
            <td class="tdnoidung">
                <asp:TextBox ID="txtDienThoai" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                    ControlToValidate="txtDienThoai" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>        
        <tr>
            <td class="tdthongtin">
                Sex:</td>
            <td class="tdnoidung">
               <asp:RadioButtonList ID="RadioBtnGioiTinh" runat="server" 
                            RepeatDirection="Horizontal">
                            <asp:ListItem  Value="Nam"   Selected="True">Male</asp:ListItem>
                            <asp:ListItem Value="Nu">Female</asp:ListItem>
                        </asp:RadioButtonList></td>
        </tr>
        <tr>
            <td class="tdthongtin">
                Birthday:</td>
            <td class="tdnoidung">
                Day <asp:DropDownList ID="DropNgay" runat="server">
                    <asp:ListItem>01</asp:ListItem>
                    <asp:ListItem>02</asp:ListItem>
                    <asp:ListItem>03</asp:ListItem>
                    <asp:ListItem>04</asp:ListItem>
                    <asp:ListItem>05</asp:ListItem>
                    <asp:ListItem>06</asp:ListItem>
                    <asp:ListItem>07</asp:ListItem>
                    <asp:ListItem>08</asp:ListItem>
                    <asp:ListItem>09</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>11</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                    <asp:ListItem>13</asp:ListItem>
                    <asp:ListItem>14</asp:ListItem>
                    <asp:ListItem>15</asp:ListItem>
                    <asp:ListItem>16</asp:ListItem>
                    <asp:ListItem>17</asp:ListItem>
                    <asp:ListItem>18</asp:ListItem>
                    <asp:ListItem>19</asp:ListItem>
                    <asp:ListItem>20</asp:ListItem>
                    <asp:ListItem>21</asp:ListItem>
                    <asp:ListItem>22</asp:ListItem>
                    <asp:ListItem>23</asp:ListItem>
                    <asp:ListItem>24</asp:ListItem>
                    <asp:ListItem>25</asp:ListItem>
                    <asp:ListItem>26</asp:ListItem>
                    <asp:ListItem>27</asp:ListItem>
                    <asp:ListItem>28</asp:ListItem>
                    <asp:ListItem>29</asp:ListItem>
                    <asp:ListItem>30</asp:ListItem>
                    <asp:ListItem>31</asp:ListItem>
                </asp:DropDownList>
                Month <asp:DropDownList ID="DropThang" runat="server">
                    <asp:ListItem>01</asp:ListItem>
                    <asp:ListItem>02</asp:ListItem>
                    <asp:ListItem>03</asp:ListItem>
                    <asp:ListItem>04</asp:ListItem>
                    <asp:ListItem>05</asp:ListItem>
                    <asp:ListItem>06</asp:ListItem>
                    <asp:ListItem>07</asp:ListItem>
                    <asp:ListItem>08</asp:ListItem>
                    <asp:ListItem>09</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>11</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                </asp:DropDownList>
                Year <asp:TextBox ID="txtNam" CssClass="clnam" runat="server" Width="60px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                    ControlToValidate="txtNam" ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:RangeValidator ID="RangeValidator1" runat="server" 
                    ControlToValidate="txtNam" ErrorMessage="năm sinh không hợp lệ" 
                    MaximumValue="2011" MinimumValue="1900" Type="Integer"></asp:RangeValidator>
            </td>
        </tr>
        <tr>
           <td class="tdthongtin">
                Address:</td>
            <td class="tdnoidung">
                <asp:TextBox ID="txtDiaChi" runat="server" Height="80px" 
                    TextMode="MultiLine" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="txtDiaChi" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="tdthongtin">
                Sercurity key:</td>
            <td class="tdnoidung">
            <fieldset style="width:200px;">
            <legend class="legend-admin">Random question</legend>
            <table cellspacing="1" class="tblcauhoi">
                <tr>
                    <td>
                        <asp:Label ID="lblcauhoi" runat="server"></asp:Label>
                        (Digit only)</td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtTraLoi" runat="server" Width="100px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ControlToValidate="txtTraLoi" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                </tr>
            </table>
            </fieldset>
            </td>
        </tr>
        <tr>
            <td class="tdthongtin">
                &nbsp;</td>
            <td class="tdnoidung">
                <asp:Button ID="txtDangKi" runat="server" Text="Done" 
                    onclick="txtDangKi_Click" Width="80px" />
                <asp:Button ID="txtTuBo" runat="server" Text="Cancel" CausesValidation="False" 
                    onclick="txtTuBo_Click" Width="80px" />
            </td>
        </tr>
        </table>
</asp:Content>

